package com.jtpay.ysfproductionprocess.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * File: HeaderModel.java
 * Author: Administrator
 * Create: 2018/08/17 10:25
 */
public class HeaderModel implements Parcelable {

    /**
     * urid : 127349696870749
     * cityCd : 130200
     * dfpSessionId : 110005D001YYlka4LIyqsMNxJjnWt2Q1yT2lK6sFJb
     * locale : zh-CN
     * sid : 4a98831c47f34efd825dc94996a479f8
     * <p>
     * ***********ignore **********************
     * en_money : 02EEE548F9F1BC91
     * en_remark : C121983D2153643B
     * en_cityCode : 69CB4C7B07645B65
     * en_virtualCardNo : 51491A381FFD67AD48AA484A9F0BE7CEC851C3EB610207DC18F2BE7AA4E14ABA9724C51E86D2E621
     */

    private String urid;
    private String cityCd;
    private String dfpSessionId;
    private String locale;
    private String sid;

    public String getUrid() {
        return urid;
    }

    public void setUrid(String urid) {
        this.urid = urid;
    }

    public String getCityCd() {
        return cityCd;
    }

    public void setCityCd(String cityCd) {
        this.cityCd = cityCd;
    }

    public String getDfpSessionId() {
        return dfpSessionId;
    }

    public void setDfpSessionId(String dfpSessionId) {
        this.dfpSessionId = dfpSessionId;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getCombinationHeader() {
        return "sid=" + sid + "&dfpSessionId=" + dfpSessionId +
                "&urid=" + urid + "&cityCd=" + cityCd;
    }

    @Override
    public String toString() {
        return "HeaderModel{" +
                "urid='" + urid + '\'' +
                ", cityCd='" + cityCd + '\'' +
                ", dfpSessionId='" + dfpSessionId + '\'' +
                ", locale='" + locale + '\'' +
                ", sid='" + sid + '\'' +
                '}';
    }

    public HeaderModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.urid);
        dest.writeString(this.cityCd);
        dest.writeString(this.dfpSessionId);
        dest.writeString(this.locale);
        dest.writeString(this.sid);
    }

    protected HeaderModel(Parcel in) {
        this.urid = in.readString();
        this.cityCd = in.readString();
        this.dfpSessionId = in.readString();
        this.locale = in.readString();
        this.sid = in.readString();
    }

    public static final Creator<HeaderModel> CREATOR = new Creator<HeaderModel>() {
        @Override
        public HeaderModel createFromParcel(Parcel source) {
            return new HeaderModel(source);
        }

        @Override
        public HeaderModel[] newArray(int size) {
            return new HeaderModel[size];
        }
    };
}
